home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / toswinsc.zoo / twproto.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-27  |  3.7 KB  |  119 lines

  1. /*
  2.  * Copyright 1992 Eric R. Smith. All rights reserved.
  3.  * Redistribution is permitted only if the distribution
  4.  * is not for profit, and only if all documentation
  5.  * (including, in particular, the file "copying")
  6.  * is included in the distribution in unmodified form.
  7.  * THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY, NOT
  8.  * EVEN THE IMPLIED WARRANTIES OF MERCHANTIBILITY OR
  9.  * FITNESS FOR A PARTICULAR PURPOSE. USE AT YOUR OWN
  10.  * RISK.
  11.  */
  12. #if defined(__STDC__) || defined(__cplusplus)
  13. # define P_(s) s
  14. #else
  15. # define P_(s) ()
  16. #endif
  17.  
  18.  
  19. /* config.c */
  20. char *nextword P_((char **ptr));
  21. int hexval P_((char *s));
  22. char *valhex P_((int i));
  23. int decval P_((char *s));
  24. char *valdec P_((int i));
  25. char *valdec2 P_((int d));
  26. void set_default_font P_((char *s));
  27. void set_scrap_coord P_((char *s));
  28. void load_config P_((char *name));
  29. void save_config P_((char *file));
  30. void load_menu_key P_((char *s));
  31. void config_menu P_((void));
  32. void sendhex P_((char *s));
  33. MENU *loadmenu P_((char *fname));
  34. void unloadmenu P_((MENU *men));
  35.  
  36. /* environ.c */
  37. char *envstr P_((char *progname, char *progargs, char *progdir, int cols, int rows));
  38. void setenvoptions P_((void));
  39. void output_termcap P_((TEXTWIN *t));
  40.  
  41. /* font.c */
  42. void init_fontdesc P_((void));
  43. void set_fontbox P_((int off, int maxfntoff, int draw));
  44. void set_sizebox P_((FONTDESC *f, int off, int draw));
  45. int slide P_((OBJECT *tree, int box, int slider, int maxoff));
  46. int page P_((OBJECT *tree, int box, int slider, int off, int maxoff));
  47. int get_font P_((int *font, int *size));
  48.  
  49. /* gadgets.c */
  50. void g_move P_((void));
  51. void g_full P_((void));
  52. void g_scroll P_((long));
  53. void g_close P_((void));
  54.  
  55. /* iconify.c */
  56. void iconify_topwin P_((void));
  57. void iconify_win P_((WINDOW *));
  58. void iconify_message P_((int *msgbuff));
  59.  
  60. /* scrap.c */
  61. void write_scrap P_((char *file, char *data, int len));
  62. char *read_scrap P_((char *name));
  63. int  scrap_exists P_((char *name));
  64.  
  65. /* toswin.c */
  66. void dead_kid P_((void));
  67. void send_sig P_((long sig));
  68. void ignore P_((void));
  69. void newstdwin P_((void));
  70. void newaltwin P_((void));
  71. void get_winsize P_((int *col, int *row, int *scroll));
  72. void set_linea P_((int ncol, int nrow));
  73. void set_altsiz P_((void));
  74. void set_stdsiz P_((void));
  75. void set_winsiz P_((void));
  76. void shutdown P_((void));
  77. void quit P_((void));
  78. void about_alert P_((void));
  79. void do_cut P_((void));
  80. void do_paste P_((void));
  81. void set_wfont P_((void));
  82. void set_dfont P_((void));
  83. void get_gadgets P_((int *, int));
  84. void toggle P_((int *var));
  85. void bury P_((void));
  86. char *Strng P_((int));
  87. #define AlertStrng Strng
  88. int main P_((void));
  89. void ac_open P_((void));
  90. void ac_close();
  91. void force_ac_close P_((void));
  92.  
  93. /* util.c */
  94. void setcutoptions P_((void));
  95. void unselect P_((TEXTWIN *t));
  96. void cut P_((WINDOW *w));
  97. void paste P_((WINDOW *w));
  98. void redraw_screen P_((int x, int y, int w, int h));
  99. void cut_from_desk P_((int x, int y));
  100. void paste_to_desk P_((int x, int y));
  101. void hot_dragbox P_((int *lines, int numpoints, int *lastx, int *lasty));
  102. void togglemenu P_((void));
  103. int win_click P_((WINDOW *w, int clicks, int x, int y, int kshift, int buttons));
  104. void desk_mouse P_((int clicks, int x, int y, int kshift, int buttons));
  105.  
  106. /* winops.c */
  107. int getfilename P_((char *title, char *name, char *path, char *default_name));
  108. int getprogname P_((char *name));
  109. int getargs P_((char *, char *));
  110. int typeit P_((WINDOW *w, int code, int shift));
  111. TEXTWIN * newproc P_((char *progname, char *progargs, char *progdir, int x,
  112.               int y, int cols, int rows, int scroll, int kind, int font, int point));
  113. void exec_tos P_((char *buf));
  114. void fd_input P_((void));
  115. void acc_input P_((void));
  116. void send_char P_((void));
  117.  
  118. #undef P_
  119.